import request from '@/utils/request'

//
export function ScoringList() {
  return request({
    url: '/performance/scoring/listSealf',
    method: 'get',
  })

// 查询教师考核打分列表
}
export function listScoring(query) {
  return request({
    url: '/performance/scoring/list',
    method: 'get',
    params: query
  })

}export function listSealf(query) {
  return request({
    url: '/performance/scoring/listSealf',
    method: 'get',
    params: query
  })
}



// 查询教师考核打分详细
export function getScoring(id) {
  return request({
    url: '/performance/scoring/' + id,
    method: 'get'
  })
}

// 新增教师考核打分
export function addScoring(data) {
  return request({
    url: '/performance/scoring',
    method: 'post',
    data: data
  })
}

// 修改教师考核打分
export function updateScoring(data) {
  return request({
    url: '/performance/scoring',
    method: 'put',
    data: data
  })
}export function Oneself(data) {
  return request({
    url: '/performance/scoring/oneSelf',
    method: 'put',
    data: data
  })

}export function OneOther(data) {
  return request({
    url: '/performance/scoring/other',
    method: 'put',
    data: data
  })
}

// 删除教师考核打分
export function delScoring(id) {
  return request({
    url: '/performance/scoring/' + id,
    method: 'delete'
  })
}
